/*
 *    Copyright (c) 2018-2025, lengleng All rights reserved.
 *
 * Redistribution and use in source and binary forms, with or without
 * modification, are permitted provided that the following conditions are met:
 *
 * Redistributions of source code must retain the above copyright notice,
 * this list of conditions and the following disclaimer.
 * Redistributions in binary form must reproduce the above copyright
 * notice, this list of conditions and the following disclaimer in the
 * documentation and/or other materials provided with the distribution.
 * Neither the name of the seckill4cloud.com developer nor the names of its
 * contributors may be used to endorse or promote products derived from
 * this software without specific prior written permission.
 * Author: lengleng (wangiegie@gmail.com)
 */
package com.jalonjia.seckill.core.entity;

import com.alibaba.excel.annotation.ExcelProperty;
import com.baomidou.mybatisplus.annotation.*;
import com.jalonjia.seckill.common.mybatis.base.BaseEntity;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * 秒杀订单表
 *
 * @author 贾晓超
 * @date 2022-05-05 20:56:44
 */
@Data
@TableName("seckill_order")
@Schema(name = "秒杀订单表")
public class SeckillOrderExcelVO implements Serializable {

    /**
     * 订单编号
     */
	@TableId(type = IdType.ASSIGN_ID)
    @Schema(name="订单编号")
	@ExcelProperty("订单编号")
    private Long id;

    /**
     * 所属秒杀活动编号
     */
    @Schema(name="所属秒杀活动编号")
	@ExcelProperty("所属秒杀活动编号")
    private Long activityNo;

    /**
     * 所属秒杀对象编号
     */
    @Schema(name="所属秒杀对象编号")
	@ExcelProperty("所属秒杀对象编号")
    private Long targetNo;

    /**
     * 订单状态
     */
    @Schema(name="订单状态")
	@ExcelProperty("订单状态")
    private Integer status;

    /**
     * 订单信息收集表单
     */
    @Schema(name="信息收集")
	@ExcelProperty("信息收集")
    private String  formValue;


	/**
	 * 创建者
	 */
	@TableField(fill = FieldFill.INSERT)
	@ExcelProperty("创建者")
	private String createBy;

	/**
	 * 创建时间
	 */
	@TableField(fill = FieldFill.INSERT)
	@ExcelProperty("创建时间")
	private LocalDateTime createTime;

	/**
	 * 更新者
	 */
	@TableField(fill = FieldFill.INSERT_UPDATE)
	@ExcelProperty("更新者")
	private String updateBy;

	/**
	 * 更新时间
	 */
	@TableField(fill = FieldFill.INSERT_UPDATE)
	@ExcelProperty("更新时间")
	private LocalDateTime updateTime;

}
